﻿using System.Windows;
using appladen.contracts;
using Ninject;
using appladen.app.NinjectModules;

namespace appladen.app
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
       
        protected override void OnStartup(StartupEventArgs e)
        {
           IKernel kernel = new ebc.ninject.Kernel(new AppModule());
           
           //View und Board sind voneinander unabhängig, daher müssen wir beidde erstellen.
           var view = kernel.Get<IView>();
           kernel.Get<IMainboard>();
           //Run
           view.Run(e.Args);
        }
    }
}
